package com.loveprogrammer.eternity.factory.template;

import cn.hutool.core.bean.BeanUtil;
import com.loveprogrammer.eternity.utils.BeanCopyUtils;

import java.io.Serializable;

/**
 * @version 1.0.0
 * @description: 英雄模版
 * @author: eric
 * @date: 2022-08-09 19:53
 **/
public class HeroTemplate extends CharacterTemplate {

    public static HeroTemplate newInstance(JobTemplate jobTemplate) {
        return BeanUtil.copyProperties(jobTemplate, HeroTemplate.class);
    }

    @Override
    public String toString() {
        return "HeroTemplate{" +
                "英雄 ='" + super.getName() + '\'' +
                ", 说明='" + super.getDesc() + '\'' +
                ", 力量=" + super.getStrength() +
                ", 护甲=" + super.getArmature() +
                ", 体力=" + super.getConstitution() +
                ", 魔力=" + super.getMagic() +
                ", 技巧=" + super.getTechnique() +
                ", 速度=" + super.getSpeed() +
                '}';
    }

}
